import Vue from 'vue'
import ElementUI from 'element-ui'
import 'babel-polyfill'
import './styles/common.scss'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import store from './store'
import './icons' // icon
import VDistpicker from 'v-distpicker'
import date from './directive/directive'
import echarts from 'echarts'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(Viewer)
Viewer.setDefaults({
  Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' }
})

Vue.prototype.$echarts = echarts 

Vue.use(ElementUI)

import Router from 'vue-router'

const isbinzang = typeof binzangOrlianban === "function" ? binzangOrlianban() : 'bz';
const orgcode = typeof getOrgCode === "function" ? getOrgCode() : '';

Vue.use(Router)

import login from './views/login/index.vue'
import loginNew from './views/login/indexNew.vue'
/* layout */
import Layout from './views/layout/Layout'
// 业务预约
import password from './views/login/forgetPsw.vue'
import administratorInfo from './views/login/administratorInfo.vue'

import errorPage_404 from './views/errorPage/404.vue'
import errorPage_401 from './views/errorPage/401.vue'

import dashboard from './views/dashboard/index.vue'
import todaySurvey from './views/business/todaySurvey.vue'

import messages_index from './views/messages/index.vue'
import messages_allRead from './views/messages/allRead.vue'
import basic_index from './views/basic/index.vue'
import data_report_index from './views/dataReport/index.vue'
import system_index from './views/system/index.vue'

//触摸屏版
import touchLayout from './touchViews/layout/Layout.vue'
import touchlogin from './touchViews/login/indextouch.vue'

import pendAshSearch from './views/search/pendAshSearch.vue'

// require.ensure()实现按需加载组件
/**
 *
 * 业务办理
 *
 *
 */
//电话预约
// 是否显示个性化页面 (采用的方法 示例)
const phoneAppointment = resolve => require.ensure([], () =>{
  switch (orgcode) {
    case '330782X1F1':
      resolve(require('./views/idv/330782X1F1/business/phoneAppointment.vue'))
      break;
    case '330381X1F1':
      resolve(require('./views/idv/330381X1F1/business/phoneAppointment.vue'))
      break;
    default:
      resolve(require('./views/business/phoneAppointment.vue'))
      break;
  }
})


const Negotiation = resolve => require.ensure([], () => resolve(require('./views/business/Negotiation.vue').default))
const roomReservation = resolve => require.ensure([], () => resolve(require('./views/business/roomReservation.vue').default))
const phoneRecorder = resolve => require.ensure([], () => resolve(require('./views/business/phoneRecorder.vue').default))

//序号绑定
const numBand = resolve => require.ensure([], () => resolve(require('./views/businessHall/numBand.vue').default))
//火化登记
const cremationReg = resolve => require.ensure([], () =>{
  switch (orgcode) {
    case '330782X1F1':
      resolve(require('./views/idv/330782X1F1/businessHall/cremationReg.vue'))
      break;
    case '330200D1F1':
      resolve(require('./views/idv/330200D1F1/businessHall/cremationReg.vue'))
      break;
    default:
      resolve(require('./views/businessHall/cremationReg.vue'))
      break;
  }
})
//外勤查询
const fieldEnquiry = resolve => require.ensure([], () => resolve(require('./views/businessHall/fieldEnquiry.vue').default))
//业务收费
const checkout = resolve => require.ensure([], () => resolve(require('./views/businessHall/checkout.vue').default))
//费用管理1
const cost = resolve => require.ensure([], () => resolve(require('./views/businessHall/cost.vue').default))
//费用管理
const costTwo = resolve => require.ensure([], () => resolve(require('./views/businessHall/costTwo.vue').default))
//零售
const retail = resolve => require.ensure([], () => resolve(require('./views/businessHall/retail.vue').default))
//押金管理
const deposit = resolve => require.ensure([], () => resolve(require('./views/businessHall/deposit.vue').default))
//内勤管理
const InternalDuty = resolve => require.ensure([], () => resolve(require('./views/businessHall/InternalDuty.vue').default))
//公墓审批
const cemeteryapprove = resolve => require.ensure([], () => resolve(require('./views/businessHall/cemeteryapprove.vue').default))
//异地运回
const remoteBack = resolve => require.ensure([], () => resolve(require('./views/businessHall/remoteBack.vue').default))
//数据上报
const dataReport = resolve => require.ensure([], () => resolve(require('./views/businessHall/dataReport.vue').default))
// 联办数据查询、
const seecQuery = resolve => require.ensure([], () => resolve(require('./views/businessHall/seecQuery.vue').default))




//联办登记
const informationRegistration = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/informationRegistration.vue').default))
//退役军人办结管理
const jointExservicemanConcludManage = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointExservicemanConcludManage.vue').default))
//残联办结管理
const jointCDPFConcludManage = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointCDPFConcludManage.vue').default))
//公积金办结管理
const jointFundConcludManage = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointFundConcludManage.vue').default))
//住建委办结管理
const jointHousCommissionConcludManage = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointHousCommissionConcludManage.vue').default))
//社保办结管理
const jointSbConcludManage = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointSbConcludManage.vue').default))
//医保办结管理
const jointYbConcludManage = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointYbConcludManage.vue').default))
//我的办结
const MyjointConclud = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/MyjointConclud.vue').default))


//户口注销
const accountCancellation = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/accountCancellation.vue').default))
// 证照获取
const GetLicence = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/GetLicence.vue').default))
//数据查询
const dataSearch = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/dataSearch.vue').default))
//短信发送
const sendMsg = resolve => require.ensure([], () => resolve(require('./views/shortmsg/sendMsg.vue').default))
//电话配置
const callManage = resolve => require.ensure([], () => resolve(require('./views/shortmsg/callManage.vue').default))
// 联办预约
const jointAppointment = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointAppointment.vue').default))
// 行政区划电话配置
const telephoneConfig = resolve => require.ensure([], () => resolve(require('./views/jointPlatform//telephoneConfig.vue').default))
// 联办登记办结新增
const jointRegistrationConcludAdd = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointRegistrationConcludAdd.vue').default))
//联办登记办结查询
const jointRegistrationConcludQuery = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointRegistrationConcludQuery.vue').default))
// 联办部门信息
const jointDepartmentInformation = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointDepartmentInformation.vue').default))
// 联办部门事项
const jointDepartmentMatter  = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointDepartmentMatter.vue').default))
//常见问题
const jointCommonProblem = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointCommonProblem.vue').default))
// 逝者查询
const decaaseQuery = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/decaaseQuery.vue').default))
// 跨区联办
const jointSpanQuery = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointSpanQuery.vue').default))

// 联办查询
const progressStatistical = resolve => require.ensure([], () => resolve(require('./views/jointPlatformSearch/progressStatistical.vue').default))
// 联办逝者查询
const jointDecaaseQuery = resolve => require.ensure([], () => resolve(require('./views/search/jointDecaaseQuery.vue').default))
// 滞留数据查询
const jointRetentionQuery = resolve => require.ensure([], () => resolve(require('./views/jointPlatform/jointRetentionQuery.vue').default))


/**
 *
 * 基础业务---基础信息
 *
 *
 */
//车辆管理
const carsManage = resolve => require.ensure([], () => resolve(require('./views/basic/carsManage.vue').default))
//悼念厅管理
const Memorial = resolve => require.ensure([], () => resolve(require('./views/basic/Memorial.vue').default))
//冰柜区域管理
const FreezerArea = resolve => require.ensure([], () => resolve(require('./views/basic/freezerArea.vue').default))
//冰柜管理
const FreezerManage = resolve => require.ensure([], () => resolve(require('./views/basic/freezerManage.vue').default))
//灵堂管理
const Mourning = resolve => require.ensure([], () => resolve(require('./views/basic/mourning.vue').default))
//火化炉管理
const Cremationfurnace = resolve => require.ensure([], () => resolve(require('./views/basic/Cremationfurnace.vue').default))
//服务种类管理
const serviceTypesManage = resolve => require.ensure([], () => resolve(require('./views/basic/serviceTypesManage.vue').default))
//服务项目管理
const serviceItemsManage = resolve => require.ensure([], () => resolve(require('./views/basic/serviceItemsManage.vue').default))
//寄存位置区域管理
const ashesArea = resolve => require.ensure([], () => resolve(require('./views/basic/ashesArea.vue').default))
//寄存位置管理
const ashesManage = resolve => require.ensure([], () => resolve(require('./views/basic/ashesManage.vue').default))
//员工管理
const staffManage = resolve => require.ensure([], () => resolve(require('./views/basic/staffManage.vue').default))
//收费项目管理
const chargeProjectManage = resolve => require.ensure([], () => resolve(require('./views/basic/chargeProjectManage.vue').default))
//减免项目管理 （上虞）
const reductionProjectManage = resolve => require.ensure([], () => resolve(require('./views/basic/reductionProjectManage.vue').default))
//收费大类管理
const chargeManage = resolve => require.ensure([], () => resolve(require('./views/basic/chargeManage.vue').default))
//列项配置管理
const columnManage = resolve => require.ensure([], () => resolve(require('./views/basic/columnManage.vue').default))
//取灰管理
const takeashManage = resolve => require.ensure([], () => resolve(require('./views/basic/takeashManage.vue').default))
//指纹管理
const fingerPrintManage = resolve => require.ensure([], () => resolve(require('./views/basic/fingerPrintManage.vue').default))
/**
 *
 * 服务管理----车队管理
 *
 *
 */
const carSendOther = resolve => require.ensure([], () => resolve(require('./views/server/carSendOther.vue').default)) //其他用车登记（余姚）
const carSendOtherHistory = resolve => require.ensure([], () => resolve(require('./views/server/carSendOtherHistory.vue').default)) //其他用车汇总表（义乌）
//派车登记
const carSend = resolve => require.ensure([], () =>{
  switch (orgcode) {
    case '330381X1F1':  // 瑞安
      resolve(require('./views/idv/330381X1F1/server/carSend.vue'))
      break;
    default:
      resolve(require('./views/server/carSend.vue'))
      break;
  }
})
const carSendHistory = resolve => require.ensure([], () => resolve(require('./views/server/carSendHistory.vue').default))

//触控版冷藏
const refrigerate = resolve => require.ensure([], () => resolve(require('./touchViews/refrigerate/index.vue').default))
//触控版寄存
const storage = resolve => require.ensure([], () => resolve(require('./touchViews/storage/index.vue').default))

/**
 *
 * 服务管理----内勤管理
 *
 *
 */
//冰柜使用
const iceUse = resolve => require.ensure([], () => resolve(require('./views/server/iceUse.vue').default))
//悼念厅使用
const mourningUse = resolve => require.ensure([], () => resolve(require('./views/server/mourningUse.vue').default))
//悼念厅存取
const mehAcs = resolve => require.ensure([], () => resolve(require('./views/server/mehAcs.vue').default))
//悼念厅预约
const mehBespoke = resolve => require.ensure([], () => resolve(require('./views/server/mehBespoke.vue').default))
//灵堂使用
const hallUse = resolve => require.ensure([], () => resolve(require('./views/server/hallUse.vue').default))
//灵堂存取
const linAcs = resolve => require.ensure([], () => resolve(require('./views/server/linAcs.vue').default))
//灵堂预约
const linBespoke = resolve => require.ensure([], () => resolve(require('./views/server/linBespoke.vue').default))
//火化炉存取
const creUse = resolve => require.ensure([], () => resolve(require('./views/server/creUse.vue').default))
//火化炉图形
const creAcs = resolve => require.ensure([], () => resolve(require('./views/server/creAcs.vue').default))
//寄存堂管理
const assUse = resolve => require.ensure([], () => resolve(require('./views/server/assUse.vue').default))
//寄存堂存取
const assUseImage = resolve => require.ensure([], () => resolve(require('./views/server/assUseImage.vue').default))
//寄存汇总表
const assUseReport = resolve => require.ensure([], () => resolve(require('./views/server/assUseReport.vue').default))
//取走汇总表
const assTakeReport = resolve => require.ensure([], () => resolve(require('./views/server/assTakeReport.vue').default))
//到期汇总表
const assExpireReport = resolve => require.ensure([], () => resolve(require('./views/server/assExpireReport.vue').default))
//无名骨灰汇总表
const assNobodyReport = resolve => require.ensure([], () => resolve(require('./views/server/assNobodyReport.vue').default))
//骨灰管理
const ashUse = resolve => require.ensure([], () => resolve(require('./views/server/ashUse.vue').default))
//请假管理
const leave = resolve => require.ensure([], () => resolve(require('./views/server/leave.vue').default))
const watching = resolve => require.ensure([], () => resolve(require('./views/server/watching.vue').default))

/**
 *
 * 统计查询----综合查询
 *
 *
 */
const deadFileSearch = resolve => require.ensure([], () => resolve(require('./views/search/deadFileSearch.vue').default))
const deadFileSearchNew = resolve => require.ensure([], () => resolve(require('./views/search/deadFileSearchNew.vue').default))
const deceasedStateQuery = resolve => require.ensure([], () => resolve(require('./views/search/deceasedStateQuery.vue').default))
const iceDispatchSearch = resolve => require.ensure([], () => resolve(require('./views/search/iceDispatchSearch.vue').default))
const creproofSearch = resolve => require.ensure([], () => resolve(require('./views/search/creproofSearch.vue').default))
const businesschargeSearch = resolve => require.ensure([], () => resolve(require('./views/search/businesschargeSearch.vue').default))
const depositmaturitySearch = resolve => require.ensure([], () => resolve(require('./views/search/depositmaturitySearch.vue').default))
const bodyOutageSearch = resolve => require.ensure([], () => resolve(require('./views/search/bodyOutageSearch.vue').default))
const CremationRecordSearch = resolve => require.ensure([], () => resolve(require('./views/search/CremationRecordSearch.vue').default))
// 接运明细查询
const carryDetailSearch = resolve => require.ensure([], () => resolve(require('./views/search/carryDetailSearch.vue').default))
//火化炉使用查询
const creUseSearch = resolve => require.ensure([], () => resolve(require('./views/search/creUseSearch.vue').default))
//历史数据查询
const queryHistoricalData = resolve => require.ensure([], () => resolve(require('./views/search/queryHistoricalData.vue').default))
//悼念厅使用查询
const mehUseSearch = resolve => require.ensure([], () => resolve(require('./views/search/mehUseSearch.vue').default))


// 统计查询----	销售业务报表
const saleStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/saleStatistics.vue').default))
// 统计查询----	火化业务报表
const cremationStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/cremationStatistics.vue').default))
// 统计查询----	业务收费汇总报表查询
const chargescountStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/chargescountStatistics.vue').default))
// 统计查询----	殡葬基本服务费用结算清册
const basicserStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/basicserStatistics.vue').default))
// 统计查询----	事项状态统计
const businessMatterStatus = resolve => require.ensure([], () => resolve(require('./views/reportForm/businessMatterStatus.vue').default))
// 统计查询----	分类汇总表
const categorySummary = resolve => require.ensure([], () => resolve(require('./views/reportForm/categorySummary.vue').default))
// 统计查询----	火化业务汇总表
const cremationBusinessStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/cremationBusinessStatistics.vue').default))
// 统计查询----	业务汇总表
const BusinessStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/BusinessStatistics.vue').default))
// 统计查询----	零售汇总表
const RetailStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/RetailStatistics.vue').default))
// 统计查询----	驾驶员出车汇总表
const DriverkhStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/DriverkhStatistics.vue').default))
// 统计查询----	出库汇总表
const OutdepotStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/OutdepotStatistics.vue').default))
// 统计查询----	火化人员基本情况统计
const CremersbasicsituationStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/CremersbasicsituationStatistics.vue').default))
//综合查询-----全部业务报表
const generalBusiness = resolve => require.ensure([], () => resolve(require('./views/reportForm/generalBusiness.vue').default))
//综合查询-----全部业务报表（上虞）
const funeraServiceSummary = resolve => require.ensure([], () => resolve(require('./views/reportForm/funeraServiceSummary.vue').default))
//综合查询-----挂账金额明细表
const detailedAccount = resolve => require.ensure([], () => resolve(require('./views/reportForm/detailedAccount.vue').default))
//综合查询-----火化炉汇总统计表
const cremationSumStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/cremationSumStatistics.vue').default))
// 统计查询----	惠民政策减免汇总表
const reductionStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/reductionStatistics.vue').default))
//驾驶员出车统计表
const driverStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/driverStatistics.vue').default))
//数据报表
const comprehensiveInfor = resolve => require.ensure([], () => resolve(require('./views/dataReport/comprehensiveInfor.vue').default))
const comprehensiveStatistics = resolve => require.ensure([], () => resolve(require('./views/dataReport/comprehensiveStatistics.vue').default))
//灵堂统计查询
const hallStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/hallStatistics.vue').default))
//墓地资料查询
// const cemeteryDataSearch = resolve => require.ensure([], () => resolve(require('./views/reportForm/cemeteryDataSearch.vue').default))
const tombsUse = resolve => require.ensure([], () => resolve(require('./views/reportForm/tombsUse.vue').default))
//冷藏资料查询
const coldDataQuery = resolve => require.ensure([], () => resolve(require('./views/reportForm/coldDataQuery.vue').default))
//冷藏资料查询
const hullDataQuery = resolve => require.ensure([], () => resolve(require('./views/reportForm/hullDataQuery.vue').default))
//零售业务查询
const retailSummary = resolve => require.ensure([], () => resolve(require('./views/reportForm/retailSummary.vue').default))
//流水记账汇总表
const runningAccount = resolve => require.ensure([], () => resolve(require('./views/reportForm/runningAccount.vue').default))
//车辆登记汇总表
const carRegister = resolve => require.ensure([], () => resolve(require('./views/reportForm/carRegister.vue').default))
//接尸人数统计报表
const carryNumStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/carryNumStatistics.vue').default))
//不减免统计报表
const noReductionStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/noReductionStatistics.vue').default))
//乡镇骨灰盒统计报表
const townAshesboxStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/townAshesboxStatistics.vue').default))
//仓库入库明细表
const storageStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/storageStatistics.vue').default))
//仓库出库明细表
const libraryStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/libraryStatistics.vue').default))
//销售业务汇总表（义乌）
const cremationBusinessSummary = resolve => require.ensure([], () => resolve(require('./views/reportForm/cremationBusinessSummary.vue').default))
//库存汇总表
const inventorySummary = resolve => require.ensure([], () => resolve(require('./views/reportForm/inventorySummary.vue').default))
//驾驶员补贴汇总表
const carAllowanceDetailed = resolve => require.ensure([], () => resolve(require('./views/reportForm/carAllowanceDetailed.vue').default))
//接运员补贴汇总表
const carrierAllowanceDetailed = resolve => require.ensure([], () => resolve(require('./views/reportForm/carrierAllowanceDetailed.vue').default))
//灵堂补贴汇总表
const hallSubsidy = resolve => require.ensure([], () => resolve(require('./views/reportForm/hallSubsidy.vue').default))
//零售汇总表
const retailDetailSummary = resolve => require.ensure([], () => resolve(require('./views/reportForm/retailDetailSummary.vue').default))
//火化人员情况汇总表
const CrematedPopulation = resolve => require.ensure([], () => resolve(require('./views/reportForm/CrematedPopulation.vue').default))
//丧葬用品销售数量统计表(上虞)
const SZYPSaleReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/SZYPSaleReport.vue').default))
//收入明细表(上虞)
const incomeDetailReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/incomeDetailReport.vue').default))
//减免汇总表
const reductionSummary = resolve => require.ensure([], () => resolve(require('./views/reportForm/reductionSummary.vue').default))
// 骨灰盒使用汇总表
const ghhStatistics = resolve => require.ensure([], () => resolve(require('./views/reportForm/ghhStatistics.vue').default))
// 业务收入表
const businessIncome = resolve => require.ensure([], () => resolve(require('./views/reportForm/businessIncome.vue').default))
//20200303 义乌新加报表
//结存明细表
const balanceReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/balanceReport.vue').default))
//库存汇总表
const stockReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/stockReport.vue').default))
//内勤补贴汇总表
const internalsubsidyReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/internalsubsidyReport.vue').default))
//灵堂介绍费汇总表 
const linmoneyReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/linmoneyReport.vue').default))
//员工补贴信息表
const staffsubsidyReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/staffsubsidyReport.vue').default))
//骨灰盒明细表
const ashesboxReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/ashesboxReport.vue').default))
//丧葬用品调库明细表
const FuneralThingsAdjustLibraryReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/FuneralThingsAdjustLibraryReport.vue').default))
//丧葬用品挂账信息表
const FuneralBillReport = resolve => require.ensure([], () => resolve(require('./views/reportForm/FuneralBillReport.vue').default))
//挂账费用明细表
const BillRecord = resolve => require.ensure([], () => resolve(require('./views/reportForm/BillRecord.vue').default))
//分类项目汇总表
const projectSummary = resolve => require.ensure([], () => resolve(require('./views/reportForm/projectSummary.vue').default))
//综合统计-----流水账汇总表
const runningAccountSummary = resolve => require.ensure([], () => resolve(require('./views/reportForm/runningAccountSummary.vue').default))
/**
 *
 * 公墓管理
 *
 *  
 */
// 单位管理
const unitManage = resolve => require.ensure([], () => resolve(require('./views/cemetery/unitManage.vue').default))
const tombManage = resolve => require.ensure([], () => resolve(require('./views/cemetery/tombManage.vue').default))
const graveManage = resolve => require.ensure([], () => resolve(require('./views/cemetery/graveManage.vue').default))
const firstBuried = resolve => require.ensure([], () => resolve(require('./views/cemetery/firstBuried.vue').default))
const spellDen = resolve => require.ensure([], () => resolve(require('./views/cemetery/spellDen.vue').default))
const dailySummary = resolve => require.ensure([], () => resolve(require('./views/cemetery/dailySummary.vue').default))
/**
 *
 * 舟山联办
 *
 *
 */

const civilizedMourning = resolve => require.ensure([], () => resolve(require('./views/reportForm/civilizedMourning.vue').default)) //文明丧葬统计
const completeRate = resolve => require.ensure([], () => resolve(require('./views/reportForm/completeRate.vue').default))//联办事项完成情况统计
const businessProcessing = resolve => require.ensure([], () => resolve(require('./views/reportForm/businessProcessing.vue').default)) //业务办理统计
const jointEnvironAwardSearch  = resolve => require.ensure([], () => resolve(require('./views/reportForm/jointEnvironAwardSearch.vue').default)) //生态奖补查询

/**
 *
 * 系统维护
 *
 *
 */
const departmentManage = resolve => require.ensure([], () => resolve(require('./views/system/departmentManage.vue').default))
const roleManage = resolve => require.ensure([], () => resolve(require('./views/system/roleManage.vue').default))
const userManage = resolve => require.ensure([], () => resolve(require('./views/system/userManage.vue').default))
const costDeploy = resolve => require.ensure([], () => resolve(require('./views/system/costDeploy.vue').default))
const PaidPriceLimitManage = resolve => require.ensure([], () => resolve(require('./views/system/PaidPriceLimitManage.vue').default)) //实收限价管理
const fileManage = resolve => require.ensure([], () => resolve(require('./views/system/fileManage.vue').default))
const codeManage = resolve => require.ensure([], () => resolve(require('./views/system/codeManage.vue').default))
const codingManage = resolve => require.ensure([], () => resolve(require('./views/system/codingManage.vue').default))



// 仓库管理
const warehouseType = resolve => require.ensure([], () => resolve(require('./views/warehouse/warehouseType.vue').default))
const arehousingManage = resolve => require.ensure([], () => resolve(require('./views/warehouse/arehousingManage.vue').default))
const manufactorMaintain = resolve => require.ensure([], () => resolve(require('./views/warehouse/manufactorMaintain.vue').default))
const storehouseSummary = resolve => require.ensure([], () => resolve(require('./views/warehouse/storehouseSummary.vue').default))
const sumDpi = resolve => require.ensure([], () => resolve(require('./views/warehouse/sumDpi.vue').default))
const sumDol = resolve => require.ensure([], () => resolve(require('./views/warehouse/sumDol.vue').default))
const sumInventory = resolve => require.ensure([], () => resolve(require('./views/warehouse/sumInventory.vue').default))
const outLibrary = resolve => require.ensure([], () => resolve(require('./views/warehouse/outLibrary.vue').default))  
const stockWarning = resolve => require.ensure([], () => resolve(require('./views/warehouse/stockWarning.vue').default))
const StockQuery= resolve => require.ensure([], () => resolve(require('./views/warehouse/StockQuery.vue').default))  //义乌库存查询
const balanceManage = resolve => require.ensure([], () => resolve(require('./views/warehouse/balanceManage.vue').default))
const nonCheckoutStatistics = resolve => require.ensure([], () => resolve(require('./views/warehouse/nonCheckoutStatistics.vue').default))
const FuneralThingsAdjustLibrary = resolve => require.ensure([], () => resolve(require('./views/warehouse/FuneralThingsAdjustLibrary.vue').default)) //丧葬用品调库

//丧葬用品
const funeralBusinessStock = resolve => require.ensure([], () => resolve(require('./views/funeral/funeralBusinessStock.vue').default)) //丧葬用品业务出库
const funeralRetailStock = resolve => require.ensure([], () => resolve(require('./views/funeral/funeralRetailStock.vue').default)) //丧葬用品零售出库
const depositCost = resolve => require.ensure([], () => resolve(require('./views/funeral/depositCost.vue').default))

const goodstypeMaintainash = resolve => require.ensure([], () => resolve(require('./views/Ashseting/goodstypeMaintainash.vue').default))
const arehousingManageash = resolve => require.ensure([], () => resolve(require('./views/Ashseting/arehousingManageash.vue').default))
const storehouseSummaryash = resolve => require.ensure([], () => resolve(require('./views/Ashseting/storehouseSummaryash.vue').default))
const sumDpiash = resolve => require.ensure([], () => resolve(require('./views/Ashseting/sumDpiash.vue').default))
const sumDolash = resolve => require.ensure([], () => resolve(require('./views/Ashseting/sumDolash.vue').default))
const sumInventoryash = resolve => require.ensure([], () => resolve(require('./views/Ashseting/sumInventoryash.vue').default))
const outLibraryash = resolve => require.ensure([], () => resolve(require('./views/Ashseting/outLibraryash.vue').default))

// 补贴管理
const subsidy = resolve => require.ensure([], () => resolve(require('./views/server/subsidy.vue').default))
const subsidySet = resolve => require.ensure([], () => resolve(require('./views/server/subsidySet.vue').default))
const subsidyBalance = resolve => require.ensure([], () => resolve(require('./views/server/subsidyBalance.vue').default))
const subsidySearch = resolve => require.ensure([], () => resolve(require('./views/server/subsidySearch.vue').default))

//展示页面
const showpageone = resolve => require.ensure([], () => resolve(require('./views/showpage/showpageone.vue').default))
const OverviewOfCremation = resolve => require.ensure([], () => resolve(require('./views/showpage/OverviewOfCremation.vue').default))
const DailyProfile = resolve => require.ensure([], () => resolve(require('./views/showpage/DailyProfile.vue').default))
const ComprehensiveQuery = resolve => require.ensure([], () => resolve(require('./views/showpage/ComprehensiveQuery.vue').default))
const ComprehensiveQueryRegister = resolve => require.ensure([], () => resolve(require('./views/showpage/ComprehensiveQueryRegister.vue').default))
const RefrigerationInformation = resolve => require.ensure([], () => resolve(require('./views/showpage/RefrigerationInformation.vue').default)) 
const ComprehensiveStatisticsCustom = resolve => require.ensure([], () => resolve(require('./views/showpage/ComprehensiveStatisticsCustom.vue').default)) 
const SummaryOfCremationPersonnel = resolve => require.ensure([], () => resolve(require('./views/showpage/SummaryOfCremationPersonnel.vue').default)) 
const SummaryOfAbnormalPersonnel = resolve => require.ensure([], () => resolve(require('./views/showpage/SummaryOfAbnormalPersonnel.vue').default)) 
const CremationInformationStatement = resolve => require.ensure([], () => resolve(require('./views/showpage/CremationInformationStatement.vue').default)) 
const HuiminInformationStatement = resolve => require.ensure([], () => resolve(require('./views/showpage/HuiminInformationStatement.vue').default)) 
const InformationStatement = resolve => require.ensure([], () => resolve(require('./views/showpage/InformationStatement.vue').default)) 
const DailyProfileOfFuneralHouses = resolve => require.ensure([], () => resolve(require('./views/showpage/DailyProfileOfFuneralHouses.vue').default)) 
const InterfaceSummaryTable = resolve => require.ensure([], () => resolve(require('./views/showpage/InterfaceSummaryTable.vue').default)) 
const ReportChecklist = resolve => require.ensure([], () => resolve(require('./views/showpage/ReportChecklist.vue').default)) 
const UnitManagement = resolve => require.ensure([], () => resolve(require('./views/showpage/UnitManagement.vue').default)) 
const CountyUnitManagement = resolve => require.ensure([], () => resolve(require('./views/showpage/CountyUnitManagement.vue').default)) 
const BinZangUnitManagement = resolve => require.ensure([], () => resolve(require('./views/showpage/BinZangUnitManagement.vue').default)) 
const WhereaboutsOfAshes = resolve => require.ensure([], () => resolve(require('./views/showpage/WhereaboutsOfAshes.vue').default)) 
const PrintingCremationCertificate = resolve => require.ensure([], () => resolve(require('./views/showpage/PrintingCremationCertificate.vue').default)) 
// 上报配置
const reportConfig = resolve => require.ensure([], () => resolve(require('./views/system/reportConfig.vue').default))

// 是否显示个性化页面 (未采用方法 示例)
// const compotent = {
//   phoneAppointment : resolve => require.ensure([], () => resolve(require('./views/business/phoneAppointment.vue').default)),
//   phoneAppointment_330682X1F1 : resolve => require.ensure([], () => resolve(require('./views/business/phoneAppointment_330682X1F1.vue').default))
// }
// function isPersonalizedPages(params) {
//   return compotent[`${params}_${orgcode}`] ? compotent[`${params}_${orgcode}`] : compotent[params]
// }
const router = new Router({
  // mode: 'history', //后端支持可开
  scrollBehavior: () => ({
    y: 0
  }),
  routes: [{
    path: '/',
    // component: isbinzang=='bz'? loginNew:(isbinzang == 'ld'? login:login),
    component: isbinzang=='bz'? loginNew:login,
    // component: login,
    hidden: true
  },
  {
    path: '/touchlogin',
    component: touchlogin,
    hidden: true
  },
  {
    path: '/pendAshSearch',
    component: pendAshSearch,
    hidden: true
  },
  {
    path: '/jointPlatform',
    component: Layout,
    name: '业务大厅',
    icon: 'glyphicon glyphicon-briefcase',
    children: [{
      path: '/jointRegistration',
      component: informationRegistration,
      name: '联办登记',
      meta: {
        keepAlive: true
      }
    },
    //新配四个按钮
    {
      path: '/jointExservicemanConcludManage',
      component: jointExservicemanConcludManage,
      name: '退役军人办结管理',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/jointCDPFConcludManage',
      component: jointCDPFConcludManage ,
      name: '残联办结管理',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/jointFundConcludManage',
      component: jointFundConcludManage,
      name: '公积金办结管理',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/jointHousCommissionConcludManage',
      component: jointHousCommissionConcludManage,
      name: '住建委办结管理',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/jointSbConcludManage',
      component: jointSbConcludManage,
      name: '社保办结管理',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/jointYbConcludManage',
      component: jointYbConcludManage,
      name: '医保办结管理',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/MyjointConclud',
      component: MyjointConclud,
      name: '我的办结',
      meta: {
        keepAlive: true
      }
    },
       {
      path: '/jointRegistrationConcludAdd',
      component: jointRegistrationConcludAdd,
      name: '联办登记办结新增',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/jointRegistrationConcludQuery',
      component: jointRegistrationConcludQuery ,
      name: '联办登记办结查询',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/jointDepartmentInformation',
      component: jointDepartmentInformation,
      name: '联办部门信息',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/jointDepartmentMatter',
      component: jointDepartmentMatter ,
      name: '联办部门事项',
      meta: {
        keepAlive: true
      } 
    },
    {
      path: '/jointCommonProblem',
      component: jointCommonProblem,
      name: '常见问题',
      meta: {
        keepAlive: true
      } 
    },
    // 逝者查询
    {
      path: '/decaaseQuery',
      component: decaaseQuery,
      name: '逝者查询',
      meta: {
        keepAlive: true
      } 
    },
    // 跨区联办
    {
      path: '/jointSpanQuery',
      component: jointSpanQuery,
      name: '跨区联办',
      meta: {
        keepAlive: true
      } 
    },
    {
        path: '/jointAppointment',
        component: jointAppointment,
        name: '联办预约',
        meta: {
          keepAlive: true
        }
      },
    {
      path: '/accountCancellation',
      component: accountCancellation,
      name: '户口注销',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/GetLicence',
      component: GetLicence,
      name: '证照获取',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/dataSearch',
      component: dataSearch,
      name: '数据查询',
      meta: {
        keepAlive: true
      }
    },
    // 联办逝者查询
    {
      path: '/jointDecaaseQuery',
      component: jointDecaaseQuery,
      name: '联办逝者查询',
      meta: {
        keepAlive: true
      }
    },
 
 
    ]
  },
  {
    path: '/shortmsg',
    component: Layout,
    name: '短信管理',
    icon: 'glyphicon glyphicon-briefcase',
    children: [{
      path: '/sendMsg',
      component: sendMsg,
      name: '短信发送',
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/callManage',
      component: callManage,
      name: '电话配置',
      meta: {
        keepAlive: true
      }
    },
    ]
  },
  {
    path: '/business',
    component: Layout,
    // redirect: '/business/index',
    name: '业务办理',
    icon: 'glyphicon glyphicon-briefcase',
    children: [{
      path: '/bookingManagement',
      component: phoneAppointment,
      name: '电话预约',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/Negotiation',
      component: Negotiation,
      name: '洽谈接待',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/roomReservation',
      component: roomReservation,
      name: '灵堂预约',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/telephoneRecord',
      component: phoneRecorder,
      name: '电话记录',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/numBand',
      component: numBand,
      name: '序号绑定',
    },
    {
      path: '/cremationReg',
      component: cremationReg,
      name: '火化登记',
    },
    {
      path: '/fieldEnquiry',
      component: fieldEnquiry,
      name: '外勤查询',
    },
    {
      path: '/checkout',
      component: checkout,
      name: '业务收费',
    },
    {
      path: '/cost',
      component: cost,
      name: '费用管理1',
    },
    {
      path: '/costTwo',
      component: costTwo,
      name: '费用管理',
    },
    {
      path: '/retail',
      component: retail,
      name: '零售收费',
    },
    {
      path: '/deposit',
      component: deposit,
      name: '押金管理',
    },
    {
      path: '/InternalDuty',
      component: InternalDuty,
      name: ' 冷藏管理',
    },
    {
      path: '/cemeteryapprove',
      component: cemeteryapprove,
      name: '公墓审批',
    },
    {
      path: '/remoteBack',
      component: remoteBack,
      name: '异地运回',
    },
    {
      path: '/dataReport',
      component: dataReport,
      name: '数据上报',
    },
    {
        path: '/seecQuery',
        component: seecQuery,
        name: '联办数据查询',
    },
    ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  {
    path: '/server',
    component: Layout,
    // redirect: '/business/index',
    name: '服务管理',
    icon: 'glyphicon glyphicon-briefcase',
    children: [{
      path: '/carSendOther',
      component: carSendOther,
      name: '其他用车登记',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/carSendOtherHistory',
      component: carSendOtherHistory,
      name: '其他用车登记汇总',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/carSend',
      component: carSend,
      name: '派车登记',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/carSendHistory',
      component: carSendHistory,
      name: '出车汇总',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/iceUse',
      component: iceUse,
      name: '冰柜使用',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/mehUse',
      component: mourningUse,
      name: '悼念厅使用',
      meta: {
        keepAlive: true // 需要被缓存
      }
    }, {
      path: '/mehAcs',
      component: mehAcs,
      name: '悼念厅存取',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },{
      path: '/mehBespoke',
      component: mehBespoke,
      name: '悼念厅预约',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },{
      path: '/linUse',
      component: hallUse,
      name: '守灵室使用',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },{
      path: '/linAcs',
      component: linAcs,
      name: '守灵室存取',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },{
      path: '/linBespoke',
      component: linBespoke,
      name: '守灵室预约',
      meta: {
        keepAlive: true // 需要被缓存
      }
    }, {
      path: '/creUse',
      component: creUse,
      name: '火化炉使用',
      meta: {
        keepAlive: true // 需要被缓存
      }
    }, {
      path: '/creAcs',
      component: creAcs,
      name: '火化炉存取',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },{
      path: '/assUse',
      component: assUse,
      name: '寄存堂使用',
      meta: {
        keepAlive: true // 需要被缓存
      }
    }, {
      path: '/assUseImage',
      component: assUseImage,
      name: '寄存堂存取',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },{
      path: '/assUseReport',
      component: assUseReport,
      name: '寄存汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },{
      path: '/assTakeReport',
      component: assTakeReport,
      name: '取走汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },{
      path: '/assExpireReport',
      component: assExpireReport,
      name: '到期汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },{
      path: '/assNobodyReport',
      component: assNobodyReport,
      name: '无名骨灰汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/tombsUse',
      component: tombsUse,
      name: '墓穴资料管理',
      meta: {
        keepAlive: true // 需要被缓存
      },
    },
    {
      path: '/coldDataQuery',
      component: coldDataQuery,
      name: '冷藏资料查询',
      meta: {
        keepAlive: true // 需要被缓存  
      },
    },
    {
      path: '/hullDataQuery',
      component: hullDataQuery,
      name: '守灵室使用',
      meta: {
        keepAlive: true // 需要被缓存  
      },
    },
    {
      path: '/ashUse',
      component: ashUse,
      name: '骨灰安置跟踪',
      meta: {
        keepAlive: true // 需要被缓存  
      },
    },
    {
      path: '/onDuty',
      component: leave,
      name: '请假管理',
      meta: {
        keepAlive: true // 需要被缓存  
      },
    },
    {
      path: '/watching',
      component: watching,
      name: '值班登记',
      meta: {
        keepAlive: true // 需要被缓存  
      },
    }

    ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  {
    path: '/Ashseting',
    component: Layout,
    name: '骨灰仓库管理',
    icon: 'glyphicon glyphicon-briefcase',
    children: [{
      path: '/goodstypeMaintainash',
      component: goodstypeMaintainash,
      name: '物品类别维护',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/arehousingManageash',
      component: arehousingManageash,
      name: '入库管理',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/storehouseSummaryash',
      component: storehouseSummaryash,
      name: '出库汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/sumDpiash',
      component: sumDpiash,
      name: '骨灰盒入库汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/sumDolash',
      component: sumDolash,
      name: '骨灰盒出库汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/sumInventoryash',
      component: sumInventoryash,
      name: '骨灰盒库存汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/outLibraryash',
      component: outLibraryash,
      name: '出库管理',
      meta: {
        keepAlive: true // 需要被缓存
      }
    }
    ]
  },
  {
    path: '/warnhouse',
    component: Layout,
    name: '仓库管理',
    icon: 'glyphicon glyphicon-briefcase',
    children: [{
      path: '/goodstypeMaintain',
      component: warehouseType,
      name: '物品类别维护',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/arehousingManage',
      component: arehousingManage,
      name: '入库管理',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/manufactorMaintain',
      component: manufactorMaintain,
      name: '厂家维护',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/storehouseSummary',
      component: storehouseSummary,
      name: '出库汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/sumDpi',
      component: sumDpi,
      name: '入库汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/sumDol',
      component: sumDol,
      name: '出库汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/sumInventory',
      component: sumInventory,
      name: '仓库库存汇总',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/outLibrary',
      component: outLibrary,
      name: '出库管理',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/FuneralThingsAdjustLibrary',
      component: FuneralThingsAdjustLibrary,
      name: '丧葬用品调库',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/stockWarning',
      component: stockWarning,
      name: '库存预警',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/StockQuery',
      component: StockQuery,
      name: '库存查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/nonCheckoutStatistics',
      component: nonCheckoutStatistics,
      name: '未结账统计',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/balanceManage',
      component: balanceManage,
      name: '结存管理',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  {
    path: '/subsidyserver',
    component: Layout,
    name: '补贴管理',
    icon: 'glyphicon glyphicon-briefcase',
    children: [{
      path: '/subsidy',
      component: subsidy,
      name: '补贴登记',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/subsidySet',
      component: subsidySet,
      name: '补贴设置',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/subsidyBalance',
      component: subsidyBalance,
      name: '补贴结存',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/subsidySearch',
      component: subsidySearch,
      name: '补贴查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  {
    path: '/funeral',
    component: Layout,
    name: '丧葬用品',
    icon: 'glyphicon glyphicon-briefcase',
    children: [{
      path: '/funeralBusinessStock',
      component: funeralBusinessStock,
      name: '丧葬用品出库',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/funeralRetailStock',
      component: funeralRetailStock,
      name: '丧葬用品零售出库',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/depositCost',
      component: depositCost,
      name: '寄存费用',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  {
    path: '/showpage',
    component: Layout,
    name: '展示页面',
    icon: 'glyphicon glyphicon-briefcase',
    children: [{
      path: '/showpageone',
      component: showpageone,
      name: '展示页面一',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/OverviewOfCremation',
      component: OverviewOfCremation,
      name: '火化概况',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/DailyProfile',
      component: DailyProfile,
      name: '每日概况',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/ComprehensiveQuery',
      component: ComprehensiveQuery,
      name: '综合查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/ComprehensiveQueryRegister',
      component: ComprehensiveQueryRegister,
      name: '综合查询(按户籍)',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/RefrigerationInformation',
      component: RefrigerationInformation,
      name: '冷藏信息综合查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/ComprehensiveStatisticsCustom',
      component: ComprehensiveStatisticsCustom,
      name: '火化人员情况汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/SummaryOfCremationPersonnel',
      component: SummaryOfCremationPersonnel,
      name: '综合统计(自定义)',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/SummaryOfAbnormalPersonnel',
      component: SummaryOfAbnormalPersonnel,
      name: '火化人员异常汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/CremationInformationStatement',
      component: CremationInformationStatement,
      name: '火化人员信息报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/HuiminInformationStatement',
      component: HuiminInformationStatement,
      name: '惠民殡葬信息报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/InformationStatement',
      component: InformationStatement,
      name: '殡葬单位信息报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/DailyProfileOfFuneralHouses',
      component: DailyProfileOfFuneralHouses,
      name: '各殡仪馆每日概况',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/InterfaceSummaryTable',
      component: InterfaceSummaryTable,
      name: '火化人员接口汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/ReportChecklist',
      component: ReportChecklist,
      name: '接口上报核对表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/UnitManagement',
      component: UnitManagement,
      name: '市级单位管理',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/CountyUnitManagement',
      component: CountyUnitManagement,
      name: '县市区单位管理',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/BinZangUnitManagement',
      component: BinZangUnitManagement,
      name: '殡葬单位管理',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/WhereaboutsOfAshes',
      component: WhereaboutsOfAshes,
      name: '各馆骨灰去向跟踪查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/PrintingCremationCertificate',
      component: PrintingCremationCertificate,
      name: '各馆火化证明打印记录查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
  ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },

  {
    path: '/dataReport',
    component: Layout,
    redirect: '/dataReport/index',
    name: '数据报表',
    icon: 'data',
    children: [{
      path: '/comprehensiveInfor',
      component: comprehensiveInfor,
      name: '综合查询 ',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/comprehensiveStatistics',
      component: comprehensiveStatistics,
      name: '综合统计 ',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    ],
    hidden: true,
  },
  {
    path: '/system',
    component: Layout,
    // redirect: '/system/index',
    name: '系统维护',
    icon: 'xitong',
    children: [{
      path: '/departmentManage',
      component: departmentManage,
      name: '部门管理 ',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/roleManage',
      component: roleManage,
      name: '角色管理 ',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/userManage',
      component: userManage,
      name: '用户管理 ',
      meta: {
        keepAlive: false // 需要被缓存
      }
    },
    {
      path: '/costDeploy',
      component: costDeploy,
      name: '收费管理 ',
      meta: {
        keepAlive: false // 需要被缓存
      }
    },
    {
      path: '/PaidPriceLimitManage',
      component: PaidPriceLimitManage,
      name: '实收限价管理',
      meta: {
        keepAlive: false // 需要被缓存
      }
    },
    {
      path: '/codingManage',
      component: codingManage,
      name: '编码管理 ',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/password',
      component: password,
      name: '修改密码',
      hidden: false,
    },
    {
      path: '/administratorInfo',
      component: administratorInfo,
      name: '管理员信息',
      hidden: false,
    },
    {
      path: '/fileManage',
      component: fileManage,
      name: '附件管理',
      hidden: false,
    },
    {
      path: '/codeManage',
      component: codeManage,
      name: '编码管理',
      hidden: false,
    },
    {
        path: '/telephoneConfig',
        component: telephoneConfig,
        name: '行政区域电话配置',
        hidden: false,
      }
    ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  // 联办查询
  {
    path: '/search',
    component: Layout,
    // redirect: '/system/index',
    name: '统计查询',
    icon: 'xitong',
    children: [{
      path: '/progressStatistical',
      component: progressStatistical,
      name: '联办进度统计报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    }]
  },
  {
    path: '/search',
    component: Layout,
    // redirect: '/system/index',
    name: '统计查询',
    icon: 'xitong',
    children: [{
      path: '/deadFileSearch',
      component: deadFileSearch,
      name: '逝者档案查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/deadFileSearchNew',
      component: deadFileSearchNew,
      name: '历史档案',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/deceasedStateQuery',
      component: deceasedStateQuery,
      name: '逝者状态查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/iceuseSearch',
      component: iceDispatchSearch,
      name: '冷藏调度历史',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/creproofSearch',
      component: creproofSearch,
      name: '火化证明查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/businesschargeSearch',
      component: businesschargeSearch,
      name: '业务收费查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/depositmaturitySearch',
      component: depositmaturitySearch,
      name: '寄存到期查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/bodyOutageSearch',
      component: bodyOutageSearch,
      name: '遗体外运查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/CremationRecordSearch',
      component: CremationRecordSearch,
      name: '火化记录查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/carryDetailSearch',
      component: carryDetailSearch,
      name: '接运明细查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/creUseSearch',
      component: creUseSearch,
      name: '火化炉使用查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/queryHistoricalData',
      component: queryHistoricalData,
      name: '历史数据查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/mehUseSearch',
      component: mehUseSearch,
      name: '悼念厅使用查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    // 滞留数据查询
    {
      path: '/jointRetentionQuery',
      component: jointRetentionQuery,
      name: '滞留数据查询',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  {
    path: '/reportForm',
    component: Layout,
    // redirect: '/system/index',
    name: '综合查询',
    icon: 'xitong',
    children: [
      {
        path: '/civilizedMourning',
        component: civilizedMourning,
        name: '文明丧葬统计',
        meta: {
          keepAlive: true // 需要被缓存
        }
      },
      {
        path: '/completeRate',
        component: completeRate,
        name: '联办事项完成情况统计',
        meta: {
          keepAlive: true // 需要被缓存
        }
      },
      {
        path: '/businessProcessing',
        component: businessProcessing,
        name: '业务办理统计',
        meta: {
          keepAlive: true // 需要被缓存
        }
      },
      {
        path: '/jointEnvironAwardSearch',
        component: jointEnvironAwardSearch,
        name: '生态奖补查询',
        meta: {
          keepAlive: true // 需要被缓存
        }
      },
      {
      path: '/saleStatistics',
      component: saleStatistics,
      name: '销售业务报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/cremationStatistics',
      component: cremationStatistics,
      name: '火化业务报表',
      meta: {
        keepAlive: true // 需要被缓存
      },
    },
    {
      path: '/generalBusiness',
      component: generalBusiness,
      name: '全部业务报表',
      meta: {
        keepAlive: true // 需要被缓存
      },
    },
    {
      path: '/runningAccountSummary',
      component: runningAccountSummary,
      name: '流水账汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      },
    },
    {
      path: '/funeraServiceSummary',
      component: funeraServiceSummary,
      name: '殡仪服务汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      },
    },
    {
      path: '/cremationSumStatistics',
      component: cremationSumStatistics,
      name: '火化炉汇总统计表',
      meta: {
        keepAlive: true // 需要被缓存
      },
    },
    {
      path: '/hallStatistics',
      component: hallStatistics,
      name: '灵堂统计查询表',
      meta: {
        keepAlive: true // 需要被缓存
      },
    },
    // {
    //   path: '/cemeteryDataSearch',
    //   component: cemeteryDataSearch,
    //   name: '墓穴资料管理',
    //   meta: {
    //     keepAlive: true // 需要被缓存
    //   },
    // },
    // {
    //   path: '/coldDataQuery',
    //   component: coldDataQuery,
    //   name: '冷藏资料查询',
    //   meta: {
    //     keepAlive: true // 需要被缓存  
    //   },
    // },
    {
      path: '/chargescountStatistics',
      component: chargescountStatistics,
      name: '业务收费汇总报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/detailedAccount',
      component: detailedAccount,
      name: '挂账金额明细表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/retailSummary',
      component: retailSummary,
      name: '零售汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/carRegister',
      component: carRegister,
      name: '车辆登记汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/carryNumStatistics',
      component: carryNumStatistics,
      name: '接尸人数统计报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/noReductionStatistics',
      component: noReductionStatistics,
      name: '不减免统计报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/townAshesboxStatistics',
      component: townAshesboxStatistics,
      name: '乡镇骨灰盒统计报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/runningAccount',
      component: runningAccount,
      name: '流水记账汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/basicserStatistics',
      component: basicserStatistics,
      name: '殡葬基本服务费用结算清册',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/businessMatterStatus',
      component: businessMatterStatus,
      name: '事项状态统计',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/categorySummary',
      component: categorySummary,
      name: '分类汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/storageStatistics',
      component: storageStatistics,
      name: '入库明细表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/libraryStatistics',
      component: libraryStatistics,
      name: '出库明细表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/cremationBusinessSummary',
      component: cremationBusinessSummary,
      name: '销售业务汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/inventorySummary',
      component: inventorySummary,
      name: '库存汇总报表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/carAllowanceDetailed',
      component: carAllowanceDetailed,
      name: '驾驶员补贴汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/carrierAllowanceDetailed',
      component: carrierAllowanceDetailed,
      name: '接运员补贴汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/hallSubsidy',
      component: hallSubsidy,
      name: '灵堂补贴汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/retailDetailSummary',
      component: retailDetailSummary,
      name: '零售明细汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/CrematedPopulation',
      component: CrematedPopulation,
      name: '火化人员情况汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/SZYPSaleReport',
      component: SZYPSaleReport,
      name: '丧葬用品销售数量统计表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/incomeDetailReport',
      component: incomeDetailReport,
      name: '收入明细表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/reductionSummary',
      component: reductionSummary,
      name: '区域减免汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    // 骨灰盒使用汇总表
    {
      path: '/ghhStatistics',
      component: ghhStatistics,
      name: '骨灰盒使用汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/businessIncome',
      component: businessIncome,
      name: '业务收入表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/cremationBusinessStatistics',
      component: cremationBusinessStatistics,
      name: '火化业务汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/BusinessStatistics',
      component: BusinessStatistics,
      name: '业务汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/RetailStatistics',
      component: RetailStatistics,
      name: '零售汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/DriverkhStatistics',
      component: DriverkhStatistics,
      name: '驾驶员出车汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/OutdepotStatistics',
      component: OutdepotStatistics,
      name: '出库汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/CremersbasicsituationStatistics',
      component: CremersbasicsituationStatistics,
      name: '火化人员基本情况统计',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/reductionStatistics',
      component: reductionStatistics,
      name: '惠民政策减免汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/driverStatistics',
      component: driverStatistics,
      name: '驾驶员出车统计表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    //义乌新加的报表
    {
      path: '/balanceReport',
      component: balanceReport,
      name: '结存明细表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/stockReport',
      component: stockReport,
      name: '库存汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/internalsubsidyReport',
      component: internalsubsidyReport,
      name: '内勤补贴汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/linmoneyReport',
      component: linmoneyReport,
      name: '灵堂介绍费汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/staffsubsidyReport',
      component: staffsubsidyReport,
      name: '员工补贴信息表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/ashesboxReport',
      component: ashesboxReport,
      name: '骨灰盒明细表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/FuneralThingsAdjustLibraryReport',
      component: FuneralThingsAdjustLibraryReport,
      name: '丧葬用品明细表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/FuneralBillReport',
      component: FuneralBillReport,
      name: '丧葬用品挂账信息表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/BillRecord',
      component: BillRecord,
      name: '挂账费用明细表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    {
      path: '/projectSummary',
      component: projectSummary,
      name: '分类项目汇总表',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
    ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  {
    path: '/basic',
    component: Layout,
    //redirect: '/basic/index',
    name: '基础信息',
    icon: 'raxicon',
    children: [{
      path: '/carsManage',
      component: carsManage,
      name: '车辆管理'
    },
    {
      path: '/mourningManage',
      component: Memorial,
      name: '追悼厅管理'
    },
    {
      path: '/freezerArea',
      component: FreezerArea,
      name: '冰柜区域管理'
    },
    {
      path: '/freezerManage',
      component: FreezerManage,
      name: '冰柜管理'
    },
    {
      path: '/hallManage',
      component: Mourning,
      name: '灵堂管理'
    },
    {
      path: '/crematoryFurnaceManage',
      component: Cremationfurnace,
      name: '火化炉管理'
    },
    {
      path: '/serviceTypesManage',
      component: serviceTypesManage,
      name: '服务种类管理'
    },
    {
      path: '/serviceItemsManage',
      component: serviceItemsManage,
      name: '服务项目管理'
    },
    {
      path: '/ashesArea',
      component: ashesArea,
      name: '寄存位置区域管理'
    },
    {
      path: '/ashesManage',
      component: ashesManage,
      name: '寄存位置管理'
    },
    {
      path: '/staffManage',
      component: staffManage,
      name: '员工管理'
    },
    {
      path: '/chargeProjectManage',
      component: chargeProjectManage,
      name: '收费项目管理'
    },
    {
      path: '/reductionProjectManage',
      component: reductionProjectManage,
      name: '减免项目管理'
    },
    {
      path: '/chargeManage',
      component: chargeManage,
      name: '收费大类管理'
    },
    {
      path: '/columnManage',
      component: columnManage,
      name: '列项配置管理'
    },
    {
      path: '/takeashManage',
      component: takeashManage,
      name: '取灰管理'
    },
    {
      path: '/fingerPrintManage',
      component: fingerPrintManage,
      name: '指纹管理'
    },
    {
      path: '/unitManage',
      component: unitManage,
      name: '单位管理'
    },
    {
      path: '/tombManage',
      component: tombManage,
      name: '墓区管理'
    },
    {
      path: '/graveManage',
      component: graveManage,
      name: '墓穴管理'
    },
    {
        path: '/firstBuried',
        component: firstBuried,
        name: '首次落葬'
    },
    {
        path: '/spellDen',
        component: spellDen,
        name: '拼穴加葬'
    },
    {
        path: '/dailySummary',
        component: dailySummary,
        name: '每日概况'
    },
    {
      path: '/reportConfig',
      component: reportConfig,
      name: '配置',
      meta: {
        keepAlive: true // 需要被缓存
      }
    },
      // {
      //   path: '/cemeteryDataSearch',
      //   component: cemeteryDataSearch,
      //   name: '墓穴资料管理',
      //   meta: {
      //     keepAlive: true // 需要被缓存
      //   },
      // },
    ],
    hidden: true,
    meta: {
      keepAlive: true // 需要被缓存
    }
  },
  {
    path: '/dashboard',
    component: Layout,
    redirect: '/dashboard',
    name: '首页',
    hidden: true,
    children: [{
      path: '/dashboard',
      component: dashboard
    },{
      path: '/todaySurvey',
      component: todaySurvey,
      name: '当日概况'
    },]
  },
  {
    path: '/404',
    component: errorPage_404,
    hidden: true
  },
  {
    path: '/401',
    component: errorPage_401,
    hidden: true
  },
  {
    path: '/messages',
    component: Layout,
    redirect: '/messages/index',
    name: '消息中心',
    children: [{
      path: 'index',
      component: messages_index,
      name: '消息中心 ',
      hidden: true
    },
    {
      path: 'allRead',
      component: messages_allRead,
      name: '全部消息 ',
      hidden: true
    },
    ],
    hidden: true

  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  },
  //触控版 
  {
    path: '/touch',
    component: touchLayout,
    name: '触控版',
    //redirect: '/refrigerate',
    children: [{
      path: '/refrigerate',
      component: refrigerate,
      name: '冷藏登记',
    },
    {
      path: '/storage',
      component: storage,
      name: '寄存管理',
    }
    ]
  }
  ]
})

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {
    App
  }
}).$mount('#app')
